home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / MacCalendar 1.0d5 / MakeFile < prev    next >
Encoding:
Makefile  |  1994-06-30  |  3.4 KB  |  165 lines  |  [TEXT/MPS ]

  1. #
  2. # MacCalendar
  3. # Copyright © 1994 Apple Computer Inc. All rights reserved.
  4. # This MakeFile builds the MacCalendar Control Strip and
  5. # the resource file needed for the MetroWerks DR3 compilation.
  6. #
  7. Src                =    ":Src:"
  8. Obj                =    ":Obj:"
  9.  
  10. Objects            =                        ∂
  11.         {Obj}DrawCalendar.c.o            ∂
  12.         {Obj}MacCalendar.c.o
  13.  
  14. AppObjects        =                        ∂
  15.         {Obj}DrawCalendar.c.ao            ∂
  16.         {Obj}MacCalendarSetup.c.ao        ∂
  17.         {Obj}OpenPreferenceFile.c.ao
  18.  
  19. Headers            =                        ∂
  20.         {Src}MacCalendar.h                ∂
  21.         {Src}MacCalendarSetup.h            ∂
  22.         {Src}ControlStrip.h
  23.  
  24. #
  25. # Directory Dependencies. Sources are in the {Src} subdirectory,
  26. # Objects in the {Obj} subdirectory.
  27. #
  28. {Obj}                ƒ    {Src}
  29.  
  30. #
  31. # Compiler option configuration
  32. #    .c.o        MacCalendar objects
  33. #    .c.ao        MacCalendar Setup objects
  34. #
  35. # Status Bar Compiler Dependencies
  36. #
  37. .c.o ƒ .c                                ∂
  38.         {Src}MacCalendar.h                ∂
  39.         {Src}ControlStrip.h
  40.     C {COptions} -b2 -mbg full -trace never -r    ∂
  41.         -d MPW                            ∂
  42.         -o {TargDir}{Default}.c.o        ∂
  43.         {DepDir}{Default}.c
  44.  
  45. #
  46. # MacCalendar Setup Compiler Dependencies
  47. #
  48. .c.ao ƒ .c                                ∂
  49.         {Src}MacCalendar.h
  50.     C {COptions} -mbg full -trace never -r    ∂
  51.         -d MPW                            ∂
  52.         -o {TargDir}{Default}.c.ao        ∂
  53.         {DepDir}{Default}.c
  54. #
  55. # Build the MetroWerks resources
  56. #
  57. MetroWerks ƒ                                ∂
  58.     "MacCalendar Setup.µ.rsrc"                ∂
  59.     "MacCalendar.µ.rsrc"
  60.         echo "MetroWerks resources created"
  61.  
  62. #
  63. # Build the Control Strip module
  64. #
  65. "MacCalendar"    ƒƒ                                ∂
  66.             "MacCalendar Setup MPW"                ∂
  67.             Makefile                            ∂
  68.             {Headers}                            ∂
  69.             {Objects}            
  70.         Link                                    ∂
  71.             -w                                    ∂
  72.             -o {targ}                            ∂
  73.             -t sdev                                ∂
  74.             -c SCAL                                ∂
  75.             -sg "MacCalendar"                    ∂
  76.             -ra "MacCalendar"=resPurgeable        ∂
  77.             -rt sdev=0                            ∂
  78.             {Objects}                            ∂
  79.             "{Libraries}"Interface.o
  80.  
  81. "MacCalendar"    ƒƒ                                ∂
  82.             "MacCalendar Setup MPW"                ∂
  83.             Makefile                            ∂
  84.             "MacCalendar.µ.rsrc"                ∂
  85.             {Headers}                            ∂
  86.             {Objects}                            ∂
  87.             {Src}MacCalendar.r                    ∂
  88.             "MacCalendarIcons.rsrc"                ∂
  89.             MakeFile
  90.         Rez                                        ∂
  91.             -o {targ}                            ∂
  92.             -append                                ∂
  93.             -t sdev                                ∂
  94.             -c SCAL                                ∂
  95.             -i "{CIncludes}"                    ∂
  96.             -i "{RIncludes}"                    ∂
  97.             -d MPW=1                            ∂
  98.             {Src}MacCalendar.r
  99.  
  100. #
  101. # Build the configuration application.
  102. #
  103. "MacCalendar Setup MPW" ƒƒ                        ∂
  104.             Makefile                            ∂
  105.             {Headers}                            ∂
  106.             {AppObjects}
  107.         Link                                    ∂
  108.             -t APPL                                ∂
  109.             -c SCCF                                ∂
  110.             {AppObjects}                        ∂
  111.             "{Libraries}"Runtime.o                ∂
  112.             "{Libraries}"Interface.o            ∂
  113.             -o {targ}
  114.  
  115. "MacCalendar Setup MPW" ƒƒ                        ∂
  116.             Makefile                            ∂
  117.             {Headers}                            ∂
  118.             "MacCalendarSetupIcons.rsrc"        ∂
  119.             {Src}MacCalendarSetup.r
  120.         Rez                                        ∂
  121.             -o {targ}                            ∂
  122.             -append                                ∂
  123.             -t APPL                                ∂
  124.             -c SCCF                                ∂
  125.             -d MPW=1                            ∂
  126.             -i "{CIncludes}"                    ∂
  127.             -i "{RIncludes}"                    ∂
  128.             {Src}MacCalendarSetup.r
  129.  
  130. #
  131. # This builds a project resource file for the
  132. # Metrowerks DR3 environment.
  133. #
  134. "MacCalendar.µ.rsrc" ƒ                        ∂
  135.         MakeFile                            ∂
  136.         "MacCalendarIcons.rsrc"                ∂
  137.         "MacCalendar Setup.µ.rsrc"            ∂
  138.         {Src}MacCalendar.h                    ∂
  139.         {Src}MacCalendar.r
  140.     Rez                                        ∂
  141.         {Src}MacCalendar.r                    ∂
  142.         -append                                ∂
  143.         -t rsrc                                ∂
  144.         -c RSED                                ∂
  145.         -d "MPW=1"                            ∂
  146.         -i "{CIncludes}"                    ∂
  147.         -i "{RIncludes}"                    ∂
  148.         -o {targ}
  149.  
  150. "MacCalendar Setup.µ.rsrc" ƒ                ∂
  151.         MakeFile                            ∂
  152.         "MacCalendarSetupIcons.rsrc"        ∂
  153.         {Src}MacCalendar.h                    ∂
  154.         {Src}MacCalendarSetup.h                ∂
  155.         {Src}MacCalendarSetup.r
  156.     Rez                                        ∂
  157.         {Src}MacCalendarSetup.r                ∂
  158.         -append                                ∂
  159.         -t rsrc                                ∂
  160.         -c RSED                                ∂
  161.         -d "MPW=1"                            ∂
  162.         -i "{CIncludes}"                    ∂
  163.         -i "{RIncludes}"                    ∂
  164.         -o {targ}
  165.